package com.orange.handler.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthItemLevelMapService;
import com.orange.modules.dao.AuthItemLevelMapRepository;
import com.orange.modules.entity.AuthItemLevelMap;

@Service
public class AuthItemLevelMapServiceImpl implements AuthItemLevelMapService{

	@Autowired
	private AuthItemLevelMapRepository authItemLevelMapRepository;
	
	@Override
	public void insertItemlevelMap(List<AuthItemLevelMap> ailm) throws SQLException {
		authItemLevelMapRepository.insertItemlevelMap(ailm);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.AuthItemLevelMapService#deleteItemlevelMap(java.lang.String, java.lang.String)
	 */
	@Override
	public void deleteItemlevelMap(String itemId ,String schoolId, String subject)
			throws SQLException {
		authItemLevelMapRepository.deleteItemlevelMap(itemId,schoolId, subject);
	}

}
